resize
Updates the size of the current browser instance.
Use this method when the web page content does not need to be visible, but the page must behave as if it were displayed in a browser window of the specified size.
Parameters
size
the new browser size, in logical pixels
Throws
when size is empty
when the browser is already closed
Updates the size of the current browser instance.
Use this method when the web page content does not need to be visible, but the page must behave as if it were displayed in a browser window of the specified size.
Parameters
width
the specified width, in logical pixels
height
the specified height, in logical pixels
Throws
when width or height is not positive
when the browser is already closed